package com.msb.error;

/**
 * @ClassName: HttpException
 * @Author: zw
 * @Description: 出百万拳，行万里路；
 * @Create 2024/8/4-08:57
 * @Version 1.0
 */
public class HttpException extends RuntimeException {
    protected Integer code;
    protected String message;
    public HttpException(ExceptionCode exceptionCode){
        this.code = exceptionCode.getCode();
        this.message = exceptionCode.getMessage();
    }


    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
